﻿using UnityEngine;
using System.Collections;

public class LoginUIComponent : MonoBehaviour 
{
	[ HideInInspector ] public bool wait = false;

	// Use this for initialization
	void Start () 
	{

	}
	
	// Update is called once per frame
	void Update ()
	{
		
	}

	public void OnClick()
	{
		if ( wait )
		{
			return;
		}

		bool b = GameSocketManager.instance.connect();

		if ( !b ) 
		{
			return;
		}

		LoginNetHandler.instance.sendLogin( "" , "" , 1 );

		wait = true;
	}


}
